#!/bin/bash

echo "开始构建快乐英语学习应用..."

# 将 AppDelegateNew.m 复制到 AppDelegate.m
cp happy-en/AppDelegateNew.m happy-en/AppDelegate.m

# 清理旧的构建文件
rm -rf ~/Library/Developer/Xcode/DerivedData/happy-en-*

# 编译和运行应用
xcodebuild -scheme happy-en -sdk iphonesimulator build

echo "构建完成！" 